﻿using System.ComponentModel.DataAnnotations;

namespace Entity.BaseInfo.DTO.Goods
{
    /// <summary>
    /// 物料表模型 - 新增
    /// </summary>
    public class GoodsAddDTO
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        [Required(ErrorMessage = "物料编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        [Required(ErrorMessage = "物料名称Name不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        public string? Spec { get; set; }

        /// <summary>
        /// 物料单位
        /// </summary>
        public string? Unit { get; set; }

        /// <summary>
        /// 物料描述
        /// </summary>
        public string? Describe { get; set; }

        /// <summary>
        /// 物料图片
        /// </summary>
        public string? File { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Required(ErrorMessage = "是否启用IsEnable不能为空")]

        public bool IsEnable { get; set; }
    }
}
